home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000262_jp107@amtp.cam.ac.uk_Mon Feb 7 09:49:00 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from kro.amtp.cam.ac.uk by cs.umb.edu with SMTP id AA26259
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 7 Feb 1994 04:49:16 -0500
  3. Return-Path: <J.S.Peatfield@damtp.cambridge.ac.uk>
  4. Received: from local MTA by kro.amtp.cam.ac.uk with Smail-3.1.28.1
  5.      id m0pTSad-00020QC; Mon, 7 Feb 94 09:49 GMT
  6. Message-Id: <m0pTSad-00020QC%kro.amtp.cam.ac.uk@damtp.cambridge.ac.uk>
  7. Date: Mon, 7 Feb 94 09:49 GMT
  8. To: tex-k@cs.umb.edu
  9. Subject: Patch for xdvik in web2c-6.1 for DEC Alpha
  10. From: Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>
  11.  
  12. On the Alpha the following patch is needed by at least for gcc-2.5.4
  13. with -O to stop it getting the argument passing to the
  14. kpse_check_bitmap_tolerance() function being messed up.  The result is
  15. that without this for each font you get a message saying that the
  16. bitmap is at the wrong size:
  17.  
  18. xdvi: Font cmr10 at 300 not found; using 300 instead.
  19. xdvi: Font cmsl10 at 300 not found; using 300 instead.
  20. xdvi: Font cmtt10 at 360 not found; using 360 instead.
  21. xdvi: Font cmbx10 at 360 not found; using 360 instead.
  22. xdvi: Font cmr10 at 360 not found; using 360 instead.
  23.  
  24. A cast to double is all that is needed in our case at least.
  25.  
  26. --cut-here--
  27. *** dvi_init.c.orig    Wed Feb  2 15:07:52 1994
  28. --- dvi_init.c    Mon Feb  7 09:41:34 1994
  29. ***************
  30. *** 191,197 ****
  31.           free(fontp->fontname);
  32.           fontp->fontname = font_found;
  33.       }
  34. !     else if (!kpse_check_bitmap_tolerance (size_found / 5.0, dpi))
  35.             Fprintf(stderr, "xdvi: Font %s at %d not found; using %d instead.\n",
  36.             fontp->fontname, dpi, (size_found + 2) / 5);
  37.       fontp->fsize = (float) size_found / 5;
  38. --- 191,197 ----
  39.           free(fontp->fontname);
  40.           fontp->fontname = font_found;
  41.       }
  42. !     else if (!kpse_check_bitmap_tolerance (size_found / 5.0, (double)dpi))
  43.             Fprintf(stderr, "xdvi: Font %s at %d not found; using %d instead.\n",
  44.             fontp->fontname, dpi, (size_found + 2) / 5);
  45.       fontp->fsize = (float) size_found / 5;
  46. --cut-here--
  47.  
  48. -- Jon